package Oop.ooptest.test03;

public class carTest {
    public static void main(String[] args) {
        car t = new car();
        t.setColor("红褐色");
        System.out.println(t.getColor());
        car c =new car("黄色",1000);
        System.out.println(c.getColor());
        //智只能通过调用方法的形式设置属性
        t.setPrice(5);
        System.out.println(t.getPrice());
        c.setColor("绿色");
        c.setPrice(6);
        System.out.println(c.getColor());
        c.run();
    }
}
